package org.paybiz.core.payplatform.yeePay.util;

import java.util.ResourceBundle;

import org.apache.log4j.Logger;
/*
 * Description:读取资源文件
 * @author  LiChunming
 * @version V1.0 
 * @createDateTime：2010-9-20 下午02:31:51 
 * @Company: MSD. 
 * @Copyright: Copyright (c) 2010
 */
public class PropTool {
	private static ResourceBundle resourceBundle=null;
	private static final Logger logger=Logger.getLogger(PropTool.class);
	static{
		try {
			//读取资源文件
			resourceBundle=ResourceBundle.getBundle("merchantInfo");
		} catch (RuntimeException e) {
			e.printStackTrace();
			logger.debug("merchantInfo 装载资源文件时出错，资源文件存在吗？");
		}
	}	
	/**
	 * 通过KEY获取地址
	 * @param key 
	 * @return
	 */
	public static String getValue(String key){
		return resourceBundle.getString(key);
	}

}
